--[[=========================================================
	FUNCTIONS
=========================================================]]--

--[[-----------------------------------------------------]]--
--	Reads a list of tables
--[[-----------------------------------------------------]]--
net.ReadTables						= function( len )

	--	Table to flil in
	local tab						= {}
	
	--	Loop through tables
	local rcvTab					= net.ReadTable()
	while IsTable( rcvTab ) and table.Count( rcvTab ) > 0 do
		table.insert( tab, rcvTab )
		rcvTab						= net.ReadTable()
	end
	
	--	Return list
	return tab

end

--[[-----------------------------------------------------]]--
--	Writes a list of tables
--[[-----------------------------------------------------]]--
net.WriteTables						= function( tab )

	--	Loop tables
	for k,v in pairs( tab ) do
		
		--	Write it if it's a table
		if IsTable( tab ) then
			net.WriteTable( tab )
		end
	end

end